<template>
    <div class="app">
        <div v-if="age>=30&&age<40">而立之年</div>
        <div v-else-if="age>=40&&age<50">不惑之年</div>
        <div v-else>知天命</div>
        <hr>
        <h2 v-show="age>=22&&(education=='专科'||education=='本科'||education=='研究生')">蜗牛学员欢迎您！</h2>
    </div>
</template>

<script>
export default {
  data(){
    return{
      age:30,
      education:'中专'
    }
  }
}
</script>

<style>

</style>